package jkstatus

import (
	"jkgo/jk/jklog"

	jkbase2 "findService/ss/servicebase"
)

// TODO: How to check client disconnected, and filter some command
//       How to change Qos

func NewIoTServer(addr string, port int) (*ServiceStatus, error) {
	st := &ServiceStatus{}
	var err error
	st.svr, err = jkbase2.NewSSIoTServer(addr, port)
	if err != nil {
		jklog.L().Errorln("Error create iot server ", err)
	} else {
		jklog.L().Infoln("Start iot Server success")
	}
	return st, err
}
